interface _CS_ {
    /**
     * 随机字符串
     * @param length <16> 字符串长度
     * @returns 字符串
     */
    randomString: (length?: number) => string;
}
{
    const range = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    Object.defineProperty(_CS_.prototype, 'randomString', {
        writable: false,
        configurable: false,
        enumerable: false,
        value: (length = 16) => {
            var result = [];
            for (var i = 0; i < length; i++) {
                result.push(range.charAt(Math.floor(Math.random() * range.length)));
            }
            return result.join('');
        }
    });
}
